package tijava.container.type;

/**
 * 一个基础的类，只重写了toString方法<br>
 * 未重写equals方法，使用默认equals方法，只有引用相同时，两者才表示两个对象相等<br>
 * 未重写hashCode方法，使用默认hashCode方法，只有引用同一对象时，其两者的hashCode才相等
 * 
 * @author nathan
 * 
 */
public class BasicType {
	protected char primary;
	protected int secondary;
	protected String item;

	public BasicType() {
	}

	public BasicType(char primary, int secondary, String item) {
		super();
		this.primary = primary;
		this.secondary = secondary;
		this.item = item;
	}

	public String toString() {
		return Character.toString(primary) + this.secondary + ": " + this.item;
	}
}
